package com.zj.system.pojo.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
@TableName("sys_menu")
@ApiModel(value="Menu对象", description="菜单表")
public class SysMenu {
  @TableId(value = "menu_id", type = IdType.AUTO)
  @ApiModelProperty(value = "菜单ID")
  private Integer menuId;
  @ApiModelProperty(value = "菜单名称")
  private String menuName;
  @ApiModelProperty(value = "父菜单ID")
  private Integer parentId;
  @ApiModelProperty(value = "显示顺序")
  private Integer orderNum;
  @ApiModelProperty(value = "请求地址")
  private String url;
  @ApiModelProperty(value = "菜单类型（M目录 C菜单 F按钮）")
  private String menuType;
  @ApiModelProperty(value = "菜单状态（0显示 1隐藏）")
  private String visible;
  @ApiModelProperty(value = "权限标识符")
  private String perms;
  @ApiModelProperty(value = "菜单图标")
  private String icon;
  @ApiModelProperty(value = "创建者")
  private String createBy;
  @ApiModelProperty(value = "创建时间")
  private LocalDateTime createTime;
  @ApiModelProperty(value = "更新着")
  private String updateBy;
  @ApiModelProperty(value = "更新时间")
  private LocalDateTime updateTime;
  @ApiModelProperty(value = "备注")
  private String remark;
  @ApiModelProperty(value = "子菜单集合")
  @TableField(exist = false)
  private List<SysMenu> sonList;



}
